package apiUtils.models;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/8/21.
 */

public final class PayTypeModel implements Parcelable {
    public static final Parcelable.Creator<PayTypeModel> CREATOR = new Parcelable.Creator<PayTypeModel>() {
        @Override
        public PayTypeModel createFromParcel(Parcel source) {
            return new PayTypeModel(source);
        }

        @Override
        public PayTypeModel[] newArray(int size) {
            return new PayTypeModel[size];
        }
    };
    public String productTypeCode;
    public String productTypeName;
    public String usingChannelName;
    public String typeCode;

    public PayTypeModel() {
    }

    public PayTypeModel(String payTypeId, String payTypeName, String defaultChannelName, String typeCode) {
        this.productTypeCode = payTypeId;
        this.productTypeName = payTypeName;
        this.usingChannelName = defaultChannelName;
        this.typeCode = typeCode;
    }

    protected PayTypeModel(Parcel in) {
        this.productTypeCode = in.readString();
        this.productTypeName = in.readString();
        this.usingChannelName = in.readString();
        this.typeCode = in.readString();
    }

    public String getProductTypeCode() {
        return productTypeCode;
    }

    public void setProductTypeCode(String productTypeCode) {
        this.productTypeCode = productTypeCode;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getUsingChannelName() {
        return usingChannelName;
    }

    public void setUsingChannelName(String usingChannelName) {
        this.usingChannelName = usingChannelName;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.productTypeCode);
        dest.writeString(this.productTypeName);
        dest.writeString(this.usingChannelName);
        dest.writeString(this.typeCode);
    }
}
